<?php


namespace app\user\controller;


use app\common\controller\Common;

class Test extends Common
{
    public function tt(){
        $username=input('username');
        $password=input('password');
        if (is_null($username)||$username=="") return $this->errJson('用户名不能为空');
        if (is_null($password)||$password=="") return $this->errJson('密码不能为空');
        return $this->okJson('成功',['username'=>$username,'password'=>$password]);
    }
}